<?php
// +----------------------------------------------------------------------
// | [ DO WHAT YOU LOVE AND FUCK THE REST ]
// +----------------------------------------------------------------------
// | Author 荒年 < 931274989@qq.com >
// +----------------------------------------------------------------------
// | Explain 邮箱验证
// +----------------------------------------------------------------------
namespace app\admin\validate;

class Email extends BaseValidate
{
  protected $rule = [
    'from_email' => 'require|email',
    'from_name' => 'require',
    'smtp' => 'require',
    'username' => 'require|email',
    'password' => 'require',
    'content' => 'require',
  ];

  protected $message = [
    'from_email.require' => '发件箱不能为空',
    'from_email.email' => '发件箱格式不正确',
    'from_name.require' => '发件人不能为空',
    'smtp.require' => '邮箱smtp服务器不能为空',
    'username.require' => '登录账户不能为空',
    'username.email' => '登录账户应为邮箱格式',
    'password.unique' => '登录密码不能为空',
    'content.unique' => '邮件模板不能为空',
  ];

}
?>